package com.zhuss.common;

import com.zhuss.util.JsonUtil;
import com.zhuss.util.ListBean;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ChooseKey {
	
	/**
	 * 问题选项
	 */
	public static Map<Integer, String> keyList;

	public static Map<Integer, Integer> scoreList;

	public static Map<Integer, String> getKeyList() {
		if (keyList == null) {
			keyList = new HashMap<>();
			keyList.put(0, "A");
			keyList.put(1, "B");
			keyList.put(2, "C");
			keyList.put(3, "D");
			keyList.put(4, "E");
			keyList.put(5, "F");
			keyList.put(6, "G");
			keyList.put(7, "H");
			keyList.put(8, "I");
			keyList.put(9, "J");
			keyList.put(10, "K");
		}
		return keyList;
	}

	public static Map<Integer, Integer> getScoreList() {
		if (scoreList == null) {
			scoreList = new HashMap<>();
			scoreList.put(0, 0);
			scoreList.put(1, 1);
			scoreList.put(2, 2);
			scoreList.put(3, 3);
			scoreList.put(4, 4);
			scoreList.put(5, 5);
			scoreList.put(6, 6);
			scoreList.put(7, 7);
			scoreList.put(8, 8);
			scoreList.put(9, 9);
			scoreList.put(10,10);
		}
		return scoreList;
	}

	public static void main(String[] args) {
		List<List<Long>> list = new ListBean<List<Long>>().build(new ListBean<Long>().build(3l).build(8l).getList()).build(new ListBean<Long>().build(3l).build(32l).getList()).getList();
		System.out.println(JsonUtil.toJson(list));
	}

}
